\documentclass[11pt,a4paper]{report}
\special{papersize=210mm,297mm}
%\usepackage[cm]{fullpage}
\usepackage[a4paper]{geometry}
\usepackage{ifpdf}
\usepackage[utf8]{inputenc}
\usepackage[francais]{babel}
\usepackage[T1]{fontenc}
\usepackage[unicode=true,pdftex,colorlinks=true,linkcolor=black,urlcolor=blue,
  citecolor=black]{hyperref}
\usepackage[usenames,dvipsnames]{color}
\usepackage{listings}
\usepackage{float}
\usepackage{natbib}
\usepackage{graphicx}
\usepackage{url}
\usepackage{subfig}
\usepackage[subfigure]{tocloft} 
\usepackage{picins}
\usepackage{fancyhdr}
\usepackage{array}
\usepackage{pdflscape}
\usepackage{tabularx}
%\usepackage{lscape}
\usepackage[table]{xcolor}
\usepackage{lastpage}
\usepackage{titlesec}
\usepackage{lmodern}
\usepackage[seeautonumberlist,
			style=altlist,
			acronym,
			translate=false]{glossaries}
\usepackage{glossaries-babel}

\definecolor{colKeys}{rgb}{0,0,1}
\definecolor{colIdentifier}{rgb}{0,0,0}
\definecolor{colComments}{rgb}{0,0.5,1}
\definecolor{colString}{rgb}{0.6,0.1,0.1}
%\definecolor{imgBackground}{rgb}{0.149,0.125,0.117}%
\definecolor{imgBackground}{HTML}{D2DDDD}
\definecolor{waitingColor}{rgb}{1,0,0}
\definecolor{completedColor}{rgb}{0,1,0}
\definecolor{inProgressColor}{HTML}{F87217}
\definecolor{errorStateColor}{RGB}{192,27,23}

%\geometry{top=60 pt, bottom=60pt, left=65pt, right=65pt}

\lstset{%configuration de listings
%language=Java,%
float=hbp,%
basicstyle=\ttfamily\small, %
identifierstyle=\color{colIdentifier}, %
keywordstyle=\color{colKeys}, %
stringstyle=\color{colString}, %
commentstyle=\color{colComments}, %
columns=flexible, %
tabsize=2, %
frame=trBL, %
frameround=tttt, %
extendedchars=true, %
showspaces=false, %
showstringspaces=false, %
numbers=left, %
numberstyle=\tiny, %
breaklines=true, %
breakautoindent=false, %
captionpos=b,%
xrightmargin=-0.5mm, %
xleftmargin=-0.5mm, %
backgroundcolor=\color{imgBackground} % 
}

%\parindent 0.6cm
%\setlength{\parskip}{0.5em plus 0.2em minus 0.2em}

\title{RAPPORT DE STAGE}
\author{Hervé \textsc{Esteguet}}
\date{\today}
\ifpdf
\pdfinfo{
/Author (Hervé ESTEGUET)
/Title (RAPPORT STAGE)
/Subject (PLATEFORME MIGRATION)
/Keywords (MDA, ECLIPSE, RCP)
/CreationDate (D:20100629212218)
}
\fi

%\newfloat{code}{H}{cod}[figure]
%\floatname{code}{Extrait}

%\newfloat{grid}{H}{grd}[figure]
%\floatname{grid}{Illustration}
\newcommand{\HRule}{\rule{\linewidth}{0.5mm}}
\newcommand{\emphbf}[1]{\textbf{\emph{#1}}}

\makeatletter

\renewcommand{\@makechapterhead}[1]{%
\vspace*{30 pt}%
{\setlength{\parindent}{0pt} \raggedright \normalfont
\bfseries\Huge\thechapter.\ #1
\par\nobreak\vspace{35 pt}}}

\renewcommand{\@makeschapterhead}[1]{%
\vspace*{30 pt}%
{\setlength{\parindent}{0pt} \raggedright \normalfont
\bfseries\Huge #1
\par\nobreak\vspace{35 pt}}}

\makeatother

% Le style de la page
%\oddsidemargin=-1cm
\setlength{\headsep}{30pt}
\setlength{\footskip}{30pt}

\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
%\renewcommand{\chaptermark}[1]{\markboth{\MakeUppercase{\chaptername\
%\thechapter.\ #1}}{}} 
\renewcommand{\sectionmark}[1]{\markright{\MakeUppercase{\sectionname\
\thesection.\ #1}}{}}

\fancyhead{}
\fancyfoot{}
\fancyhead[L]{\includegraphics[scale=0.18]{images/univ_nantes3.jpg}}
\fancyhead[R]{\includegraphics[scale=0.42]{images/logo-sodifrance.png}}
\fancyhead[C]{\small \scshape RAPPORT DE STAGE}
\fancyfoot[L]{\small \scshape \leftmark} 
\fancyfoot[R]{\scshape \thepage\ sur \pageref{LastPage}}

\pagenumbering{arabic}

\fancyheadoffset{5pt}
\renewcommand{\headrulewidth}{0.001 pt}
\renewcommand{\footrulewidth}{0 pt}

%\hyphenation{im-pl\'e-men-ta-tion}%

%Configuration du glossaire
\makeglossaries

%\glossarystyle{long3col}
%\glossarystyle{long3colheader}
%\glossarystyle{long3colheaderborder}
%\glossarystyle{longragged3col}
%\glossarystyle{longragged3colheader}

% pour personnaliser la façon dont sont imprimés les entrées
\renewcommand{\glstextformat}[1]{\textsf{#1}}
%\renewcommand{\glstextformat}[1]{#1*}
%\renewcommand{\glstextformat}[1]{\color{blue!70!black}\bfseries#1}

\renewcommand*{\glsgroupskip}{}
\renewcommand*{\glsseeformat}[3][\seename]{(\xmakefirstuc{#1}
\glsseelist{#2}.)}


\input{glossary_entries.tex}

%We define a command to format webographie entries
\newcommand{\webentry}[2]{%
\noindent% set the paragraph indent to 0
\textbullet\ \textsc{#1}\newline% The title of the entry
\indent$\rightarrow$\ \url{#2}\newline% The link
}

%We define a command to format webographie entries
\newcommand{\webrefentry}[3]{%
\noindent% set the paragraph indent to 0
\textbullet\ \textsc{#1}\newline% The title of the entry
\indent$\rightarrow$\ \href{#2}{#3}\newline% The link
}

\begin{document}

%% Puces au lieu de tirets dans les listes:
\renewcommand{\labelitemi}{$\triangleright$}
%\renewcommand{\labelitemii}{\textbullet}
%\renewcommand{\labelitemiii}{\textbullet}

%we align the table counter with the figure counter

\input{title.tex}

\clearpage
\setcounter{tocdepth}{2}
\tableofcontents

\chapter*{Remerciements}
\addcontentsline{toc}{chapter}{Remerciements}
\label{chap:thanks}
\input{thanks.tex}

\chapter*{Introduction}
\addcontentsline{toc}{chapter}{Introduction}
\label{chap:intro}
\input{intro.tex}

\chapter{Présentation du stage}
\label{chap:internship_context}

\section{Le groupe \textsc{Sodifrance}}
\label{sec:sodifrance}
\input{presentation_sodifrance.tex}

\section{Contexte du stage}
\label{sec:sodifrance}
\input{presentation_context_stage.tex}

\section{Objectifs et méthodologies}
\label{sec:internship_context}
\input{presentation_goal_and_method.tex}

\chapter{Travaux accomplis}
\label{chap:tasks}

\section{Prise en main et analyse de l'existant}
\label{sec:task_adaptation}
\input{task_adaptation.tex}

\section{Prototypage et architecture générale}
\label{sec:task_proto_and_arch}
\input{task_proto_and_arch.tex}

\section{Déploiement et intégration continue}
\label{sec:task_build_process}
\input{task_build_process.tex}

\section{Evolutions incrémentales}
\label{sec:task_evolutions}
\input{task_evolutions.tex}

\chapter{Bilan et apports}
\label{chap:summary}
\input{summary.tex}

\chapter*{Conclusion}
\addcontentsline{toc}{chapter}{Conclusion}
\label{chap:conclusion}
\input{conclusion.tex}

\input{annexe.tex}

\end{document}
